import { Vector3 } from "three";

/** 常量 */
export default class ConstDef {

    /** 记录协同审查的一些沙雕玩意 */
    static isJump: boolean = false; // 协同审查记录问题是否跳转到问题列表
    static isJump2: boolean = false; // 协同审查问题回复是否跳转到问题列表
    static qusetionType: number = 0; // 协同审查问题回复问题状态
    static top: string = ''; // 协同审查问题列表定位
    static left: string = ''; // 协同审查问题列表定位
    static activeTip: string = '全部问题'; // 协同审查问题列表选中的tip
    static allDropList: any = null; // 协同审查问题列表过滤条件对象
    static selectPage: number = 0; // 协同审查问题列表当前选中页
    static pageCountIndex: number = 0; // 协同审查问题列表分页数量
    /** 记录协同审查的一些沙雕玩意 */

    static readonly origin = new Vector3(0,0,0);

    static readonly xnormal = new Vector3(1, 0, 0);

    static readonly ynormal = new Vector3(0, 1, 0);

    static readonly znormal = new Vector3(0, 0, 1);

    static readonly xnegate = new Vector3(-1, 0, 0);

    static readonly ynegate = new Vector3(0, -1, 0);

    static readonly znegate = new Vector3(0, 0, -1);

    static tmp1:Vector3 = new Vector3();
    static tmp2:Vector3 = new Vector3();
    static tmp3:Vector3 = new Vector3();

    /** 平面宽度 */
    static readonly PLANE_WIDTH = 1000000;
    /** 平面长度 */
    static readonly PLANE_HEIGTH = 1000000;
    /** 贴片的坡口 */
    static readonly PASTER_POKO = 5;
    /** cad颜色值 */
    static readonly CADColors = [
        [0, 0, 0],
        [255, 0, 0],
        [255, 255, 0],
        [0, 255, 0],
        [0, 255, 255],
        [0, 0, 255],
        [255, 0, 255],
        [255, 255, 255],
        [128, 128, 128],
        [192, 192, 192],
        [255, 0, 0],
        [255, 120, 112],
        [192, 0, 0],
        [207, 103, 96],
        [144, 0, 0],
        [144, 72, 79],
        [127, 0, 0],
        [112, 56, 48],
        [79, 0, 0],
        [79, 39, 32],
        [255, 56, 0],
        [255, 159, 127],
        [192, 48, 0],
        [207, 127, 96],
        [144, 32, 0],
        [144, 88, 64],
        [112, 24, 0],
        [127, 72, 63],
        [79, 16, 0],
        [64, 40, 31],
        [255, 127, 0],
        [255, 191, 127],
        [207, 103, 0],
        [192, 151, 96],
        [159, 72, 0],
        [144, 112, 79],
        [127, 63, 0],
        [127, 95, 63],
        [64, 32, 0],
        [64, 55, 31],
        [255, 191, 0],
        [255, 216, 127],
        [207, 152, 0],
        [192, 175, 96],
        [144, 112, 0],
        [144, 128, 64],
        [112, 88, 0],
        [127, 111, 63],
        [64, 55, 0],
        [64, 63, 31],
        [255, 255, 0],
        [255, 255, 112],
        [207, 200, 0],
        [192, 200, 96],
        [144, 151, 0],
        [144, 151, 64],
        [144, 152, 0],
        [127, 120, 63],
        [79, 72, 0],
        [79, 72, 32],
        [191, 255, 0],
        [208, 255, 112],
        [144, 200, 0],
        [176, 200, 96],
        [111, 151, 0],
        [128, 151, 79],
        [95, 127, 0],
        [111, 127, 63],
        [48, 72, 0],
        [63, 72, 31],
        [127, 255, 0],
        [191, 255, 127],
        [95, 200, 0],
        [159, 200, 96],
        [64, 151, 0],
        [111, 151, 64],
        [63, 120, 0],
        [95, 127, 63],
        [31, 72, 0],
        [48, 72, 32],
        [63, 255, 0],
        [159, 255, 127],
        [47, 200, 0],
        [127, 200, 96],
        [31, 151, 0],
        [80, 151, 64],
        [31, 127, 0],
        [79, 127, 63],
        [15, 72, 0],
        [47, 72, 32],
        [0, 255, 0],
        [127, 255, 127],
        [0, 200, 0],
        [95, 200, 95],
        [0, 151, 0],
        [79, 151, 79],
        [0, 127, 0],
        [63, 127, 63],
        [0, 72, 0],
        [32, 72, 32],
        [0, 255, 63],
        [127, 255, 159],
        [0, 200, 47],
        [95, 200, 112],
        [0, 151, 32],
        [64, 151, 95],
        [0, 120, 31],
        [63, 127, 79],
        [0, 72, 15],
        [32, 72, 47],
        [0, 255, 127],
        [127, 255, 191],
        [0, 200, 96],
        [95, 200, 144],
        [0, 151, 64],
        [79, 151, 111],
        [0, 127, 63],
        [63, 127, 95],
        [0, 72, 32],
        [31, 72, 48],
        [0, 255, 191],
        [127, 255, 223],
        [0, 200, 144],
        [95, 200, 175],
        [0, 151, 111],
        [79, 151, 128],
        [0, 120, 95],
        [63, 127, 111],
        [0, 72, 48],
        [32, 72, 63],
        [0, 255, 255],
        [127, 255, 255],
        [0, 200, 207],
        [96, 200, 207],
        [0, 151, 144],
        [64, 151, 144],
        [0, 127, 127],
        [63, 127, 127],
        [0, 72, 79],
        [32, 72, 79],
        [0, 191, 255],
        [127, 223, 255],
        [0, 152, 207],
        [96, 176, 207],
        [0, 111, 144],
        [64, 128, 144],
        [0, 95, 127],
        [63, 111, 127],
        [0, 55, 64],
        [31, 63, 64],
        [0, 127, 255],
        [112, 184, 255],
        [0, 96, 192],
        [96, 151, 207],
        [0, 72, 159],
        [79, 112, 144],
        [0, 63, 127],
        [63, 95, 127],
        [0, 39, 79],
        [32, 56, 79],
        [0, 63, 255],
        [127, 159, 255],
        [0, 48, 207],
        [96, 127, 207],
        [0, 39, 159],
        [64, 95, 144],
        [0, 24, 127],
        [63, 79, 127],
        [0, 15, 64],
        [32, 47, 79],
        [0, 0, 255],
        [127, 127, 255],
        [0, 0, 207],
        [95, 96, 192],
        [0, 0, 144],
        [79, 72, 159],
        [0, 0, 127],
        [63, 63, 127],
        [0, 0, 64],
        [32, 39, 79],
        [63, 0, 255],
        [159, 127, 255],
        [47, 0, 192],
        [127, 103, 207],
        [32, 0, 144],
        [80, 72, 144],
        [31, 0, 127],
        [79, 63, 127],
        [15, 0, 79],
        [47, 39, 79],
        [127, 0, 255],
        [191, 127, 255],
        [96, 0, 207],
        [144, 103, 207],
        [79, 0, 144],
        [111, 72, 144],
        [63, 0, 127],
        [95, 63, 127],
        [31, 0, 64],
        [48, 39, 79],
        [191, 0, 255],
        [223, 127, 255],
        [144, 0, 207],
        [175, 96, 192],
        [111, 0, 144],
        [128, 72, 159],
        [95, 0, 127],
        [96, 56, 112],
        [48, 0, 64],
        [64, 39, 79],
        [255, 0, 255],
        [255, 127, 255],
        [192, 0, 192],
        [192, 96, 192],
        [144, 0, 144],
        [144, 72, 144],
        [127, 0, 127],
        [127, 63, 127],
        [79, 0, 79],
        [64, 32, 64],
        [255, 0, 191],
        [255, 127, 223],
        [192, 0, 144],
        [192, 96, 175],
        [144, 0, 111],
        [144, 72, 128],
        [127, 0, 95],
        [127, 56, 111],
        [64, 0, 48],
        [79, 39, 63],
        [255, 0, 127],
        [255, 127, 191],
        [192, 0, 95],
        [192, 96, 144],
        [159, 0, 79],
        [144, 72, 111],
        [127, 0, 63],
        [127, 63, 95],
        [64, 0, 31],
        [64, 32, 48],
        [255, 0, 63],
        [255, 127, 159],
        [207, 0, 48],
        [207, 103, 127],
        [144, 0, 32],
        [144, 72, 95],
        [127, 0, 31],
        [127, 63, 79],
        [79, 0, 15],
        [64, 32, 47],
        [47, 47, 47],
        [80, 88, 80],
        [128, 128, 128],
        [175, 175, 175],
        [208, 215, 208],
        [255, 255, 255],
    ];

    static readonly HELPER_POS = [
        'top', 'right', 'bottom', 'left'
    ]

}
